$(function() {
				v_list = new Vue({
					el: '#message-index',
					data: {
						type: 'init',
						list: []
					},
					methods: {
						getList: function() {
							this.$http.get('../../message/list.do', {}).then(function(res) {
								//接收后端传来的数据
								console.log(toJson(res.data));
								if(res.data.success) {
									this.list = res.data.data;
								}
							}, function(res) {
								console.log("getList()出错:" + toJson(res));
							});
						},
						//常用
						toIndex: function() {
							window.location = "../gover/index.html"
						},

						exitAttendTo: function() {
							$.openDialog({
								'title': '',
								"showClose": false,
								'width': 824,
								'height': 460,
								'url': '../gover/selfHelpExitChoose.html'
							});
						},
						toZhengwu_gr:function(){
							var type='gr'
							window.location ="../gover/readIdentityCard.html?type="+type;
							
						},
						toZhengwu_qy:function(){
							var type='qy'
							window.location ="../gover/readIdentityCard.html?type="+type;
							
						},
						toZhengwu_dept:function(){
							var type='dept'
							window.location ="../gover/readIdentityCard.html?type="+type;
							
						},
						toBianMin:function(){
							window.location ="../convenient/convenient-index.html";
						},
						exitProcess: function(op,type) {
							if(op == 'index') {
								$.showConfirm({
									'title': '',
									'content': '是否退出办理？',
									"showClose": false,
									"sureLabel": "取消",
									"cancelLabel": "退出办理",
									'cancel': this.toIndex
								});
							} else if(op == 'scanner') {
								$.showConfirm({
									'title': '',
									'content': '是否退出办理？',
									"showClose": false,
									"sureLabel": "取消",
									"cancelLabel": "退出办理",
									'cancel': this.toScanner
								});
							}else if(op=='zhengwu'){
								if(type=='gr'){									
									$.showConfirm({
										'title': '',
										'content': '是否退出办理？',
										"showClose": false,
										"sureLabel": "取消",
										"cancelLabel": "退出办理",
										'cancel': this.toZhengwu_gr,
										key:"type"
									});
								}else if(type=='qy'){
									$.showConfirm({
										'title': '',
										'content': '是否退出办理？',
										"showClose": false,
										"sureLabel": "取消",
										"cancelLabel": "退出办理",
										'cancel': this.toZhengwu_qy,
										key:"type"
									});
								}else if(type=='dept'){
									$.showConfirm({
										'title': '',
										'content': '是否退出办理？',
										"showClose": false,
										"sureLabel": "取消",
										"cancelLabel": "退出办理",
										'cancel': this.toZhengwu_dept,
										key:"type"
									});
								}
							}else if(op == 'bianmin'){
								$.showConfirm({
										'title': '',
										'content': '是否退出办理？',
										"showClose": false,
										"sureLabel": "取消",
										"cancelLabel": "退出办理",
										'cancel': this.toBianMin,
										key:"type"
									});
							}
						},
						//常用结束
						back:function(){
							window.location="../gover/index.html"
						}
					},
					filters: {
						titlefilter: function(val) {
							if(val != null && val.length > 43)
								val = val.substring(0, 42) + '...';
							return val;
						}
					},
					ready: function() {
						//初始化获得总页面数和列表数据
						//$("#message-index").load('../s.html');
						this.getList();
						$("#left").load("../../page/common/left.html")
					}
				});
			});